package com.kedacom.general.feign;


import feign.RequestInterceptor;
import feign.RequestTemplate;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;

@Slf4j
public class FeignCTserverConfig {
    @Slf4j
    public static class FeignJTConfig implements RequestInterceptor {

        @Value("${searchServer.token:ED6E62901CA443909AE2DE8721F8611702}")
        private String ctServerAuthorization;

        //塞token
        @Override
        public void apply(RequestTemplate template) {
            template.header("Authorization",ctServerAuthorization);
        }
    }
}
